<template>
		<view>
			<!-- 提示信息弹窗 -->
			<uni-popup ref="mymessage" type="message">
				<uni-popup-message :type="msgType" :message="messageText" :duration="2000"></uni-popup-message>
			</uni-popup>
		</view>
</template>
<script>
	export default {
		data() {
			return {
				msgType: "success",
				messageText: "ok",
				icon: ""
			}
		},
		name: "MyuniAlert",
		methods: {
			open(type, message) {
				this.msgType = type;
				this.messageText = message;
				this.$refs.mymessage.open();
			}
		}
	}
</script>